package com.zxw.user.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zxw.common.core.base.entity.BaseEntity;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-01-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ec_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账号
     */
    private String account;

    /**
     * 用户名称
     */
    private String username;

    /**
     * 密码
     */
    private String passwordCode;

    /**
     * 状态 1-启用 0-禁用
     */
    private Integer enabled;

    /**
     * 用户手机号
     */
    private Long phone;

    /**
     * 性别 0-女 1-男 2-未知
     */
    private Integer sex;

    /**
     * 部门id
     */
    private Integer deptId;

    /**
     * 邮箱
     */
    private String email;


}
